<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量    
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。    
	pageContext.setAttribute("basePath", basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>后台管理系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="<%=basePath%>/assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath%>/assets/css/bui-min.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath%>/assets/css/main-min.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div class="header">

    <div class="dl-title">
        <!--<img src="/chinapost/Public/assets/img/top.png">-->
    </div>

    <div class="dl-log">欢迎您，<span class="dl-log-user">${admin.aName }</span><a href="<%=path%>/rest/admin/adminlogout"  title="退出系统" class="dl-log-quit">[退出]</a>
    </div>
</div>
<div class="content">
    <div class="dl-main-nav">
        <div class="dl-inform"><div class="dl-inform-title"><s class="dl-inform-icon dl-up"></s></div></div>
        <ul id="J_Nav"  class="nav-list ks-clear">
            <li class="nav-item dl-selected"><div class="nav-item-inner nav-home">系统管理</div></li>		
        </ul>
    </div>
    <ul id="J_NavContent" class="dl-tab-conten">

    </ul>
</div>
<script type="text/javascript" src="<%=basePath%>/assets/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>/assets/js/bui-min.js"></script>
<script type="text/javascript" src="<%=basePath%>/assets/js/common/main-min.js"></script>
<script type="text/javascript" src="<%=basePath%>/assets/js/config-min.js"></script>
<script>
    BUI.use('common/main',function(){
        var config = [
        {
        	id:'admin',
        	menu:[
        	{
        		text:'用户管理',
        		items:[
        		{
        			id:'user',
        			text:'用户信息查看',
        			href:'<%=basePath%>/rest/user/getAllUser'
        		}]
        	},
        	{
        		text:'商品信息管理',
        		collapsed : true,
        		items:[
        		{
        			id:'goods',
        			text:'商品信息查看',
        			href:'<%=basePath%>/rest/goods/getAllGoods'
        		}
        		]
        	},
        	{
        		text:'分类信息管理',
        		collapsed : true,
        		items:[
        		{
        			id:'category',
        			text:'分类信息查看',
        			href:'<%=basePath%>/rest/category/getAllCategory'
        		}]
        	},
        	{
        		text:'订单信息管理',
        		collapsed : true,
        		items:[
        		{
        			id:'orderform',
        			text:'订单信息查看',
        			href:'<%=basePath%>/rest/orderform/getAllOrderform'
        		}
        		]
        	},
        	]
        }];
        new PageUtil.MainPage({
            modulesConfig : config
        });
    });
</script>
<div style="text-align:center;">
	
</div>
</body>
</html>